<div class="h-entry">
    <h1><a class="p-name">Expanding URLs within HTML content</a></h1>
    <div class="e-content">
        <ul>
            <li><a href="http://www.w3.org/">Should not change: http://www.w3.org/</a></li>
            <li><a href="http://example.com/">Should not change: http://example.com/</a></li>
            <li><a href="test.html">File relative: test.html = http://example.com/test.html</a></li>
            <li><a href="/test/test.html">Directory relative: /test/test.html = http://example.com/test/test.html</a></li>
            <li><a href="/test.html">Relative to root: /test.html = http://example.com/test.html</a></li>
        </ul>
        <img src="http://www.w3.org/2008/site/images/logo-w3c-mobile-lg" /><img src="/images/test.gif" />
    </div>  
</div>